<?php
/**
 *+------------------
 * Lflow
 *+------------------
 * Copyright (c) 2023~2030 gitee.com/liu_guan_qing All rights reserved.本版权不可删除，侵权必究
 *+------------------
 * Author: Mr.April(405784684@qq.com)
 *+------------------
 */
declare (strict_types=1);

namespace lflow\access\dialect;

use lflow\access\Page;

/**
 * 数据库差异的方言接口
 *
 * @author Mr.April
 * @since  1.0
 */
interface Dialect
{

    /**
     * getPageSql  根据分页对象获取分页sql语句
     *
     * @param string             $sql  未分页sql语句
     * @param \lflow\access\Page $page 分页对象
     *
     * @return mixed
     */
    public function getPageSql(string $sql, Page $page);

}